#ifndef DISK_H
#define DISK_H

//opens some random disk
int openDisk(char *filename, int nbytes);

//creates descriptors
int createDescriptor(char *filename);

//reads blocks n stuff
int readBlock(int disk, int blocknr, int *block);

//writes blocks n stuff
int writeBlock(int disk, int blocknr, int *block);

//syncs the disk
void syncDisk();

void open_disk_test();

void write_test();

void read_test();

void test_parity();

#endif


